package com.d3works.apps.project.db.repo;

import com.d3works.apps.project.db.Wiki;
import com.d3works.apps.project.service.ProjectTaskService;
import com.google.inject.Inject;

public class WikiProjectRepository extends WikiRepository {

  @Inject ProjectTaskService projectTaskService;

  @Override
  public Wiki save(Wiki entity) {
    String content = entity.getContent();
    entity.setContent(projectTaskService.getTaskLink(content));
    return super.save(entity);
  }
}
